package com.dodoke.domain;

import com.dodoke.common.annotation.Excel;
import com.dodoke.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.io.Serializable;

/**
 * 【地址】对象 wx_addresss
 * 
 * @author dodoke
 * @date 2020-08-25
 */
public class WxAddresss implements Serializable
{
    private static final long serialVersionUID = 1L;

    /** 主键id */
    private Long id;

    /** 微信用户id */
    @Excel(name = "微信用户id")
    private Long wxId;

    /** 收货人 */
    @Excel(name = "收货人")
    private String receiver;

    /** 手机号 */
    @Excel(name = "手机号")
    private String telephone;

    /** 具体地址 */
    @Excel(name = "具体地址")
    private String detailAddress;

    /** 1代表是默认地址，0表示不是 */
    @Excel(name = "1代表是默认地址，0表示不是")
    private Integer isDefault;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setWxId(Long wxId) 
    {
        this.wxId = wxId;
    }

    public Long getWxId() 
    {
        return wxId;
    }
    public void setReceiver(String receiver) 
    {
        this.receiver = receiver;
    }

    public String getReceiver() 
    {
        return receiver;
    }
    public void setTelephone(String telephone) 
    {
        this.telephone = telephone;
    }

    public String getTelephone() 
    {
        return telephone;
    }
    public void setDetailAddress(String detailAddress) 
    {
        this.detailAddress = detailAddress;
    }

    public String getDetailAddress() 
    {
        return detailAddress;
    }
    public void setIsDefault(Integer isDefault) 
    {
        this.isDefault = isDefault;
    }

    public Integer getIsDefault() 
    {
        return isDefault;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("wxId", getWxId())
            .append("receiver", getReceiver())
            .append("telephone", getTelephone())
            .append("detailAddress", getDetailAddress())
            .append("isDefault", getIsDefault())
            .toString();
    }
}
